package com.authsphere.springboot.starter.plugin;

import com.authspere.plugin.global.DefaultAuthSphereContextBuilder;
import com.authspere.plugin.global.GlobalPlugin;
import com.authsphere.plugin.api.AuthSphereBeforePlugin;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: AuthSphere
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/26 09:27
 **/
@Configuration
public class GlobalPluginConfiguration {

    @Bean
    public AuthSphereBeforePlugin globalPlugin() {
        return new GlobalPlugin(new DefaultAuthSphereContextBuilder());
    }
}
